﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using GodHelper.Models;

namespace GodHelper.Controllers
{
    public class View_LoginController : Controller
    {
        public ActionResult Login()
        {
            string Useremail = null;
            string AutoLogin = null;
            if (Request.Cookies["AutoLogin"] != null)
            {
                AutoLogin = Request.Cookies["AutoLogin"].Value.ToString();
                if (Request.Cookies["Useremail"] != null)
                {
                    Useremail = Request.Cookies["Useremail"].Value.ToString();
                    Response.Redirect("/View_Main/Main?name=" + Useremail);
                    return null;
                }
            }
           
           return View();
        }
    }
}
